<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        var str = `张三打不过张三丰`
        //模版字符串的差值
        let a = 10;
        let str1 = `张三${a}分别想念我`
        console.log(str1)
        //还可以写简易的js代码
        let salary = 1000;
        let str2 = `张三要${salary >= 1000 ? '赢取白富美' : '想啥呢'}`;
        console.log(str2)

    </script>
</body>

</html>